﻿using System.Collections;
using System.Collections.Generic;
using QxFramework.Utilities;
using UnityEngine;

public class Data : Singleton<Data>
{
    /// <summary>
    /// 添加CSV表.
    /// </summary>
    public void LoadTable()
    {
        //添加关卡设计表格
        string StageDesign = Resources.Load<TextAsset>("CSV/StageDesign").text;
        string PlayerData = Resources.Load<TextAsset>("CSV/PlayerGrowData").text;
        string ProcessData = Resources.Load<TextAsset>("CSV/Process").text;
        string Dialogue = Resources.Load<TextAsset>("CSV/GameDialoge").text;
        List<string> tableList = new List<string>();
        tableList.Add(StageDesign);
        tableList.Add(PlayerData);
        tableList.Add(ProcessData);
        tableList.Add(Dialogue);
        TableAgent.Instance.Add(tableList);
    }
}